package com.hwtx.form.persistence.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 功能权限与url的映射表
 * </p>
 *
 * @author baomidou
 * @since 2025-09-22
 */
@Getter
@Setter
@ToString
@TableName("sys_function_resource_mapping")
public class SysFunctionResourceMapping implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 资源id
     */
    @TableField("resource_id")
    private Long resourceId;
    /**
     * 来源表单id
     */
    @TableField("from_form_id")
    private Long fromFormId;

    /**
     * url
     */
    @TableField("url")
    private String url;

    /**
     * 创建人ID
     */
    @TableField("create_id")
    private String createId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 修改人ID
     */
    @TableField("update_id")
    private String updateId;

    /**
     * 创建时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
}
